<?php

declare(strict_types=1);

namespace Upside\Router;

final readonly class Route
{
    public string $path;
    /**
     * @var class-string $controller
     */
    public string $controller;
    public string $action;
    public string $method;
    public string $name;

    /**
     * @param class-string $controller
     */
    public function __construct(string $path, string $controller, string $action, string $method, string $name)
    {
        $this->path = $path;
        $this->controller = $controller;
        $this->action = $action;
        $this->method = $method;
        $this->name = $name;
    }
}
